package com.akaovi.sch.pojo;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:31
 * @since 2022/11/7 14:31
 */
public class Student extends Person implements PersonFunc {

    public Student() {
    }

    public Student(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.printf("学生%s去食堂吃饭！\n", this.getName());
    }

    @Override
    public void sleep() {
        System.out.printf("学生%s回寝室睡觉！\n", this.getName());
    }
}
